Prev | Next

Wind and Gravity - Use the Force

<< | >>

Earth Or Moon: Gravity And Slow Motion

Overview

Newton told us about gravity. We learned that an apple falls at the same rate as a grape. We also learned that objects accelerate as they fall. And we were taught that objects fell at about 9.8 m/s^2.

This section discusses how 3D Flag uses gravity to make a flag drop naturally, and how we can set gravity to a value other than 9.8 to simulate other environments, like being on the moon, or under water.

The Pull Of Gravity

The flags that 3D Flag creates are made up of a grid of points. Each point has a weight (a mass), and gravity pulls each point downward using the standard gravity equation mentioned above.

Gravity is different than wind speed because wind affects each point on the flag differently. Gravity, by contrast, affects each point on the flag equally.

So, while wind is blowing the flag in one direction, gravity is tugging it down. The two forces work together to create a natural look.

Putting A Flag On The Moon

As you may know, the moon doesn't have as much gravity as the earth. Astronauts float as they leap from point to point. In fact, the moon has only 1/6 of the gravity of earth, so objects only fall about 1.6 m/s^2.



We can simulate a flag on the moon by setting Gravity to 1.6 and by slowing down our Wind Speed.

  1. Open the "Moon.aep" project found in the "Flag Tutorials" folder. This project has a United States flag in it. We'll change our forces to make it look like the flag is on the moon, similar to the image above.
  2. Since we're putting this flag on the moon, we'll need to change the amount of gravity in the scene. In the Effect Controls window, locate the Gravity parameter and change its value to 1.6. The gravity in the scene is now 1/6 of what it used to be.



    The flag doesn't change that much because the wind was already blowing pretty strong to the right.
  3. Since the moon doesn't really have wind, but does have some small wind-like force, let's slow our Wind Speed way down, making it blow just enough to keep the flag upright.

    In the Effect Controls window, find the Wind Speed parameter and lower its value until just before the flag starts to droop. A value of 2 should look about right.
  4. Watch the new animation by clicking the 3D Flag logo, in the Effect Controls window, to open the Options window.



    Notice how everything seems slower. The wind is very slow, but the gravity is low too, so the flag stays up.
  5. Click the OK button to exit the Options window.

Slow Motion

Let's go one step further and find out how to put a flag into slow motion. We'll use the same principals discussed above. We'll lower Wind Speed and Gravity, making sure that the gravity is really low, and that the wind speed is just fast enough for the flag to keep its shape.

  1. Locate the Gravity parameter and lower it way down, setting it to around 0.2. This gravity will pull down on the flag just a little bit.
  2. Now lower the Wind Speed parameter way down. We want the wind speed to be as slow as possible, but to allow the flag to keeps its shape. A value of 0.5 should work.
  3. Now play back the animation in the Options window again. Notice how everything moves very slowly. The lower the wind speed and gravity, the slower the motion.

You can combine Wind Speed and Gravity to simulate some interesting environments.

There is one remaining Forces parameter that we have not discussed. In the next section, Using Pre-Roll To Find The Perfect Wave, we'll see how the Pre-Roll parameter can help us start our animation at the right moment.